@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}


.ant-tree .ant-tree-treenode, .ant-tree-node-content-wrapper {
  width: 100%;
}

.ant-tree-title > .ant-btn-link {
  text-align: left;
  color: black;
}

.ant-tree-title > div {
  display: inline;
}

.ant-tree-title .ant-btn {
  height: 24px;
  padding:  0 15px;
  position: absolute;
  right: 0;
}

.ant-table-cell .ant-btn {
  padding: 0;
}

.ant-pro-basicLayout-content > .ant-card > .ant-card-body {
  height: calc(100vh - 96px - 94px - 10px);
  background-color: #fff;
}

.ant-pro-page-container-children-content {
  height: calc(100vh - 96px - 50px - 94px - 10px);
  background-color: #fff;
}
